package com.xm.po;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
* @Description: 商品新闻实体类
* @Author: Mr.Wang
* @Date: 2020/8/6
*/
public class News{
	//属性
	private Integer id;
	//标题
	private String title;
	//内容
	private String content;
	//创建时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private String createTime;
	//构造器
	public News(){}
	public News(Integer id,String title,String content,String createTime){
		this.id=id;
		this.title=title;
		this.content=content;
		this.createTime=createTime;
}
	//getter setter方法
	public void setId(Integer id){
		this.id=id;
	}
	public Integer getId(){
		return id;
	}
	public void setTitle(String title){
		this.title=title;
	}
	public String getTitle(){
		return title;
	}
	public void setContent(String content){
		this.content=content;
	}
	public String getContent(){
		return content;
	}
	public void setCreateTime(String createTime){
		this.createTime=createTime;
	}
	public String getCreateTime(){
		return createTime;
	}
	public String toString(){
		return "News [id=" + id + ", title=" + title + ", content=" + content + ", createTime=" + createTime + "]";
	}
}

